package org.projetjava.presentation;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import org.projetjava.metier.model.Lieu;

public class Carte extends JPanel{
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public Carte()
	{
		this.setBackground(Color.ORANGE); 
		
		String path = "earth.png";
        BufferedImage image = null;
		try {
			image = ImageIO.read(new File(path));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        MapScale test = new MapScale(image);
        
        this.setLayout(new BorderLayout());
        this.add(new JScrollPane(test), BorderLayout.CENTER);
        this.add(test.getSlider(), BorderLayout.SOUTH);
        

	}
	
	private Lieu lieu;
	

	public void setLieu(Lieu lieu) {
		this.lieu = lieu;
	}

	
	
}
